import java.io.File;
import java.util.Observer;

import javax.swing.JFrame;



@SuppressWarnings("serial")
public abstract class WindowFactory extends JFrame implements Observer{
       
        public static WindowFactory createWindow(String type) {
               
                if("Main".equals(type)) {
                                                       
                        return FenetreMain.getInstance();
                }
                else if("ZoomPos".equals(type)) {
                       
                       
                        return FenetreZoomPos.getInstance();
                }
                else if("Vignette".equals(type)) {
                       
                        return FenetreVignette.getInstance();
                }
                else if("Sauvegarde".equals(type)) {
                	return FenetreSauvegarde.getInstance();
                }
                else
                        return null;
                       
               
        }

        public void createMainWindow() {
                // TODO Auto-generated method stub
               
        }

        public void setZoomPos(ZoomPosition zoomPosition) {
                // TODO Auto-generated method stub
               
        }

        public void addPic(File img) {
                // TODO Auto-generated method stub
               
        }

		public int getChoice() {
			// TODO Auto-generated method stub
			return 0;
		}      
}